package com.hx.rpc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author Huathy
 * @date 2021-10-18 21:20
 * @description
 */
@Configuration
@ComponentScan(basePackages = "com.hx")
public class SpringConfig {

    @Bean(name = "hxRpcServer")
    public HxRpcServer hxRpcServer(){
        return new HxRpcServer(8888);
    }
}
